;;; Code:
(require 'assoc)
-(provide 'man)
;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
;; user variables
(defvar Man-reference-regexp "[-a-zA-Z0-9_.]+\\(([0-9][a-zA-Z+]*)\\)?"
"*Regular expression describing a reference in the SEE ALSO section.")
+(defvar Man-switches ""
+ "*Switches passed to the man command, as a single string.")
;; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;; end user variables
(defun Man-build-man-command ()
"Builds the entire background manpage and cleaning command."
- (let ((command "man %s 2>&1 | ")
+ (let ((command (concat "man " Man-switches " %s 2>&1 | "))
(flist Man-filter-list))
(while flist
(let ((pcom (car (car flist)))
Man-first-heading-regexp Regexp for first heading on a manpage.
Man-reference-regexp Regexp matching a references in SEE ALSO.
Man-version-number Superman version number.
+Man-switches Background `man' command switches.
The following key bindings are currently in effect in the buffer:
\\{Man-mode-map}"
(insert "Using Superman version " Man-version-number ".")
(message "Using Superman version %s." Man-version-number)))
+\f
+(provide 'man)
+
;;; man.el ends here